package com.huangwei.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
@Data
@ToString
@ApiModel("订单信息")
public class Orders implements Serializable {
    @ApiModelProperty("订单ID")
    private Integer orderId;
    @ApiModelProperty("预约天数")
    private Integer bookDay;
    @ApiModelProperty("预约日期")
    private Date bookDate;
    @ApiModelProperty("总消费")
    private Double cost;
    @ApiModelProperty("日平均价格")
    private Double avgCost;
    @ApiModelProperty("订单状态")
    private OrderState orderState;
    @ApiModelProperty("预约用户")
    private User user;
    @ApiModelProperty("预约车辆")
    private Car car;
}
